import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import myFooter from '@/footers/myfooter'
import user from '@/views/user'
import bag from '@/views/bag'
import boybag from '@/views/listgoods/boybag'
import myRightMain from '@/rightCon/myRightMain'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'; 

Vue.use(Router)
Vue.use(ElementUI)  
export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/myRightMain',
      name: 'myRightMain',
      component: myRightMain
    },
    {
      path: '/user/:id',
      name: 'user',
      component: user
    },
    {
      path:'/bag',
      name:"bag",
      component:bag,
      children:[{
        path: 'boybag',
        name: 'boybag',
        component: boybag
      }]
    }
  ]
})
